package com.appbee.gdata.picasa.client.ui;

import com.appbee.gdata.picasa.client.activity.PicasaPhotoShowActivity;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.ImageElement;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

public class PicasaPhotoShowView extends Composite implements
		PicasaPhotoShowActivity.View
{

	private static PicasaPhotoShowViewUiBinder uiBinder = GWT
			.create(PicasaPhotoShowViewUiBinder.class);

	interface PicasaPhotoShowViewUiBinder extends
			UiBinder<Widget, PicasaPhotoShowView>
	{
	}

	@UiField
	ImageElement img;

	public PicasaPhotoShowView()
	{
		initWidget(uiBinder.createAndBindUi(this));
	}

	@Override
	public void setPhotoUrl(String url)
	{
		img.setSrc(url);
	}

}
